<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.mysql.fabric.xmlrpc.base.Value"%>
<%@page import="org.apache.struts2.ServletActionContext"%>
<%@page import="henu.bean.User"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<form id="pagerForm" method="post" action="demo_page2.html">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="keywords" value="${param.keywords}" />
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>
<div class="pageHeader">
	<form  action="userAction?action=querry" method="post" onsubmit="return navTabSearch(this);">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					查询：
				</td>
				<td>
					<select class="combox" name="province">
						<option value="按姓名">按姓名</option>
						<option value="按用户名">按用户名</option>
						<option value="按用户类型">按用户类型</option>
					</select>
				</td>
				<td>要查询的值：<input type="text" name="value"/></td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="add_6.html" target="dialog"><span>添加</span></a></li>
			<li><a class="delete" href="userAction?action=delete&fUsername={sid_user}" target="navTab"><span>删除</span></a></li>
			<li><a class="edit" href="userAction?action=updatebefore&fUsername={sid_user}" target="dialog"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="exportAction?name=user" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="100" align="center">用户名</th>
				<th width="100" align="center">姓名</th>
				<th width="100" align="center">密码</th>
				<th width="100" align="center">提示问题</th>
				<th width="100" align="center">提示答案</th>
				<th width="100" align="center">用户类型</th>
				<th width="100" align="center">备注</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="e" items="${users}">
			<tr target="sid_user" rel="${e.fUsername }">
				<td>${e.fUsername}</td>
				<td>${e.fRealname }</td>
				<td>${ e.fPassword}</td>
				<td>${e.fReminderQuestion }</td>
				<td>${e.fReminderAnswer }</td>
				<td>${e.fUserType }</td>
				<td>${e.fRemark }</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>共${totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="200" numPerPage="20" pageNumShown="10" currentPage="1"></div>

	</div>
</div>
